<ul style="text-align: right;position: fixed;left: 0;right: 0;top: 0;z-index: 100;z-index: 999999;" class="layui-nav layui-nas">
    <li class="layui-nav-item">
        <div style="position: fixed;left: 20px;top: 0;" class="layui-logo"><a target="_blank" href="https://qzhlxf.1688.com/?spm=a261y.7663282.autotrace-topNav.1.aed865deBJdOUM"><img src="webapp/images/bosdes.png" style="height: 58px;width: 60px;"/> 泉州鲤城嘉源塑料制品有限公司<span class="layui-badge">官</span></a> </div>
    </li>
    <li class="layui-nav-item">
        <a onclick="javascript:window.location.replace($('body').attr('id')+'index.html');" style="cursor: pointer;" >回到首页</a>
    </li>
    <li class="layui-nav-item">
        <a style="cursor: pointer;" onclick="javascript:window.location.replace($('body').attr('id')+'Logins.html');">管理中心控制台</a>
    </li>
    <li class="layui-nav-item">
        <a onclick="custom_close();" style="cursor: pointer;" >关闭程序</a>
    </li>
</ul>
<script language="javascript">
    // 这个脚本是 ie6和ie7 通用的脚本
    function custom_close(){
        window.location.replace($('body').attr('id')+'index.html?END=close');
    }
</script>
<script>
    layui.use('element', function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
</script>
<div id="freams" style="text-align: center;width: 100%;height: auto;float: left;margin-top: 60px;padding: 50px;padding-top: 0px;">
<div style="width:100%;height:auto;float: left;">
    <ul id="ProductList_list" style="width: 100%;">

    </ul>
</div>
</div>
<script>
    function getinfo(a) {
        $.ajax({
            url: $('body').attr('id')+"ProductList.html",
            type: "get",
            contentType: "application/json; charset=utf-8",
            data: {
                stage:"allproductsInFO",
                sessionIDSM:$(a).attr('name'),
                SessionMD5:window.location.href.split("=")[1]
            },success: function (data) {
                window.location.replace(data);
            }});
    }
    $(function () {
        $('#ProductList_list').empty();
        $.ajax({
            url: $('body').attr('id')+"ProductList.html",
            type: "get",
            contentType: "application/json; charset=utf-8",
            data: {
                stage:"allproducts",
                sessionIDSM:window.location.href.split("=")[1]
            },success: function (data) {
                var json = eval(data);
                for(var i =0 ;i<json.length;i++){
                    $('#ProductList_list').append("<li><img id='fils' name='"+json[i].productNumber+"' onclick='javascript:getinfo(this)' src='"+json[i].productImages1+"' /><p class='snamsl'><b>"+json[i].productNumber+"</b></p></li>");
                }

            }});
    })

</script>